<?php if (!defined('THINK_PATH')) exit();?><!doctype html>
<html>
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
         <title></title>
         <link rel="stylesheet" href="/tonglai/wstmall2/Apps/Home/View/<?php echo ($WST_STYLE); ?>/css/common.css" />
    	 <link rel="stylesheet" href="/tonglai/wstmall2/Apps/Home/View/<?php echo ($WST_STYLE); ?>/css/shop.css">
    	 <link rel="stylesheet" type="text/css" href="/tonglai/wstmall2/Public/plugins/webuploader/webuploader.css" />
         <script src="/tonglai/wstmall2/Public/js/jquery.min.js"></script>
		<script src="/tonglai/wstmall2/Public/plugins/lazyload/jquery.lazyload.min.js?v=1.9.1"></script>
		<script type="text/javascript">
		var WST = ThinkPHP = window.Think = {
		        "ROOT"   : "/tonglai/wstmall2",
		        "APP"    : "/tonglai/wstmall2/index.php",
		        "PUBLIC" : "/tonglai/wstmall2/Public",
		        "DEEP"   : "<?php echo C('URL_PATHINFO_DEPR');?>",
		        "MODEL"  : ["<?php echo C('URL_MODEL');?>", "<?php echo C('URL_CASE_INSENSITIVE');?>", "<?php echo C('URL_HTML_SUFFIX');?>"],
		        "VAR"    : ["<?php echo C('VAR_MODULE');?>", "<?php echo C('VAR_CONTROLLER');?>", "<?php echo C('VAR_ACTION');?>"],
		        "DOMAIN" : "<?php echo WSTDomain();?>",
		        "CITY_ID" : "<?php echo ($currArea['areaId']); ?>",
		        "CITY_NAME" : "<?php echo ($currArea['areaName']); ?>",
		        "DEFAULT_IMG": "<?php echo WSTDomain();?>/<?php echo ($CONF['goodsImg']); ?>",
		        "MALL_NAME" : "<?php echo ($CONF['mallName']); ?>",
		        "SMS_VERFY"  : "<?php echo ($CONF['smsVerfy']); ?>",
		        "PHONE_VERFY"  : "<?php echo ($CONF['phoneVerfy']); ?>",
		        "IS_LOGIN" :"<?php echo ($WST_IS_LOGIN); ?>"
		}
		</script>
		<script src="/tonglai/wstmall2/Public/js/think.js"></script>
    </head>
    <body>
        <form autocomplete='off'>
        <input type='hidden' id='id' class='wst-ipt' value='<?php echo ($object["id"]); ?>'/>
        <table width='100%' style='margin-top:20px;' class='wst-form'>
           <tr>
              <th width='120' align='right'>账户类型：</th>
              <td>
              <select id='accTargetId' class='wst-ipt'>
                  <option value='0'>请选择</option>
                  <?php if(is_array($bank)): $i = 0; $__LIST__ = $bank;if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$vo): $mod = ($i % 2 );++$i;?><option value='<?php echo ($vo["bankId"]); ?>' <?php if($object["accTargetId"] == $vo['bankId']): ?>selected<?php endif; ?>><?php echo ($vo["bankName"]); ?></option><?php endforeach; endif; else: echo "" ;endif; ?>
              </select>
              </td>
           </tr>
           <tr height='40'> 
              <th align='right'>账号：</th>
              <td><input type='text' id='accNo' class='wst-ipt' value='<?php echo ($object["accNo"]); ?>' style='width:250px'/></td>
           </tr>
           <tr> 
              <th align='right'>持有人：</th>
              <td><input type='text' id='accUser' class='wst-ipt' value='<?php echo ($object["accUser"]); ?>' style='width:250px'/></td>
           </tr>
           <tr> 
              <th align='right'>开户地址：</th>
              <td>
             <select id='areaId1' name='areaId1' onchange='javascript:getAreaList("areaId2",this.value,0)'>
               <option value=''>请选择</option>
               <?php if(is_array($areaList)): $i = 0; $__LIST__ = $areaList;if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$ar): $mod = ($i % 2 );++$i;?><option value='<?php echo ($ar['areaId']); ?>' <?php if($object['areaId1'] == $ar['areaId'] ): ?>selected<?php endif; ?>><?php echo ($ar['areaName']); ?></option><?php endforeach; endif; else: echo "" ;endif; ?>
             </select>
             <select id='areaId2' name='areaId2' class="wst-ipt">
               <option value=''>请选择</option>
             </select>
              </td>
           </tr>
           <tr> 
              <td align='center' colspan='2' style='padding-top:10px;padding-left:150px;'>
                  <button type='button' class='wst-btn-query' onclick="saveEditConfig()">保存</button>
                  <button type='reset' class='wst-btn-query'>重置</button>
              </td>
           </tr>
        </table>
        </form>
        <div style='display:none'>
		Copyright©2015 Powered By <a target="_blank" href="http://www.wstmall.com">WSTMall</a>
	    </div>
    </body>
    <script src="/tonglai/wstmall2/Public/plugins/layer/layer.min.js"></script>
    <script src="/tonglai/wstmall2/Public/js/common.js"></script>
    <script src="/tonglai/wstmall2/Apps/Home/View/<?php echo ($WST_STYLE); ?>/js/shopcom.js"></script>
    <script>
    $(document).ready(function(){
	    <?php if(!empty($object["areaId1"])): ?>getAreaList("areaId2",'<?php echo ($object['areaId1']); ?>',0,'<?php echo ($object["areaId2"]); ?>');<?php endif; ?>
   	});
    </script>
</html>